package org.flowable.app.cusTaskExe;

import cmbchina.util.AjaxJson;
import cmbchina.util.RunScript;
import org.flowable.app.model.runtime.CompleteFormRepresentation;
import org.flowable.engine.TaskService;
import org.flowable.task.service.delegate.DelegateTask;
import org.slf4j.LoggerFactory;

/**
 * Created by sevenlm on 2017/12/22.
 */
public class CusScriptTask implements CusTask {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CusScriptTask.class);
    @Override
    public AjaxJson exe( CompleteFormRepresentation completeTaskFormRepresentation, TaskService taskService, String taskId, String resultParmas, String processInstId,String taskDefinitionKey) {
        return RunScript.runScript(completeTaskFormRepresentation, taskService, taskId, resultParmas,processInstId,taskDefinitionKey);
    }
}
